package com.lmh.graphdisease.utils;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author lmh
 * @desc
 * @date 2023/3/7
 */
@Data
@AllArgsConstructor
public class ResultBean {
    private boolean success;
    private int code;
    private String msg;
    private Object data;
    public static ResultBean success(Object data){
        return new ResultBean(true,200,"success",data);
    }
    public static ResultBean fail(int code,String msg){
        return new ResultBean(false,code,msg,null);
    }
}